package com.scwatch.core.repository;

import com.scwatch.common.orm.Limitable;
import com.scwatch.core.domain.ProgramBackcode;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.Repository;

import java.util.List;

/**
 * Created by rh006 on 2017/7/27.
 */
public interface ProgramBackcodeDao  extends Repository<ProgramBackcode, Integer> {

    public Page<ProgramBackcode> findAll(Specification<ProgramBackcode> spec,
                                         Pageable pageable);

    public List<ProgramBackcode> findAll(Specification<ProgramBackcode> spec,
                                         Limitable limitable);

    public ProgramBackcode findOne(Integer id);


    public ProgramBackcode save(ProgramBackcode bean);

    public void delete(ProgramBackcode bean);

  /* public List<Program> findByStatus(int status);*/
}
